package org.example.myportfolio.pojo.param;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class WorksParam {

    private Long id;
    @NotNull(message = "userId不能为空")
    private Long userId;
    @NotBlank(message = "title不能为空")
    private String title;
    @NotBlank(message = "description不能为空")
    private String description;
    @NotNull(message = "categoryId不能为空")
    private Integer categoryId;

    //用于存入数据库
    private WorkFilesParam workFilesParam;

    //添加tag字段用于存入数据库
    private int tagId;


}
